package io.guangli.tutorials1v1vcall

import com.lzy.okgo.OkGo
import com.lzy.okgo.callback.Callback

object Util {

     fun getToken(channelName: String, callback: Callback<String>) {
        OkGo.post<String>("http://59.110.7.170/appapidemo/agora/buildRtcTokenAndRoom")
            .params("channelName", channelName) //                .upJson("")
            .execute(callback)
    }

    fun buildRoomToken(uuid: String, callback: Callback<String>) {
        OkGo.post<String>("http://59.110.7.170/appapidemo/agora/buildRoomToken")
            .params("uuid", uuid) //                .upJson("")
            .execute(callback)
    }
}